<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>菜鸟教程</title>
  </head>
  <body>
    <script type="text/javascript">
      let myObj = null;
      console.log(typeof myObj);

      let name;
      console.log(name);
      console.log(typeof name);

      console.log("变量未定义直接使用时，js编译器会报错并返回undefined");
      // console.log(typeof a);
      // console.log(a);
    </script>
  </body>
</html>
